<template>
  <div class="customer-dashboard">
    <h2>客服控制台</h2>
    <div class="quick-links">
      <el-card class="quick-link colorful-card" @click="navigateTo({ name: 'CustomerMessageManagement' })">
        <el-icon class="colorful-icon"><ChatDotSquare /></el-icon>
        <div class="link-title">常见问题管理</div>
      </el-card>
      <el-card class="quick-link colorful-card" @click="navigateTo({ name: 'SupportRequestList' })">
        <el-icon class="colorful-icon"><Service /></el-icon>
        <div class="link-title">客服支持</div>
      </el-card>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'
import { ChatDotSquare, Service } from '@element-plus/icons-vue'

const router = useRouter()
const navigateTo = (path) => {
  router.push(path)
}
</script>

<style scoped>
.customer-dashboard {
  padding: 24px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

.customer-dashboard h2 {
  color: #3a3a3a;
  font-size: 24px;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  margin-bottom: 24px;
  text-align: center;
}

.quick-links {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.quick-link {
  flex: 0 1 280px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 40px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  border: none;
}

.quick-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  background: rgba(255, 255, 255, 0.9);
}

.colorful-icon {
  font-size: 48px;
  margin-bottom: 16px;
  color: #6a5acd;
}

.link-title {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 600;
  color: #3a3a3a;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
  .quick-links {
    flex-direction: column;
    align-items: center;
  }
  
  .quick-link {
    width: 100%;
    max-width: 320px;
  }
  
  .colorful-icon {
    font-size: 40px;
  }
  
  .link-title {
    font-size: 16px;
  }
}
</style>